/*
SSD1289 3.2" TFT LCD Functions for PIC32MX795F512L PMP
Copyright (C) 2012 Craig Dawson, Aaron Mohtar, Craig Peacock

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/

#include "SSD1289.h"
#include "math.h"

#define FILL    1
#define NOFILL  0

//defined functions
void lcdDrawHorizontalLine(unsigned int x1, unsigned int y1, unsigned int x2, unsigned int y2, unsigned int colour);
void lcdDrawVerticalLine(unsigned int x1, unsigned int y1, unsigned int x2, unsigned int y2, unsigned int colour);

void lcdDrawLine(unsigned int x1, unsigned int y1, unsigned int x2, unsigned int y2, unsigned int colour);

void lcdDrawRectangle(unsigned int x1, unsigned int y1, unsigned int x2, unsigned int y2, unsigned int colour, unsigned char filled);
void lcdFillScreen(unsigned int colour);

void lcdDrawCircle(unsigned int x, unsigned int y, int radius, int fill, unsigned int colour);